<?php
/**
 * IMMOPHP
 * @author Drouche Romain
 * @contact contact@immophp.fr
 * @website www.immophp.fr
 * */
 
require 'kernel/common.php';

if(!$Session->check_admin()) 
    redirect('index.php');
    
require IMMOPHP_ROOT_PATH . 'kernel/class/Plugins.class.php';

$Plugins = new Plugins($paramClass);

$Plugins->getAll();

$GLOBALS['smarty']->assign('plugins_wait', $Plugins->_pluginsWait);
$GLOBALS['smarty']->assign('plugins_install', $Plugins->_pluginsInstalled);
$GLOBALS['smarty']->assign('lang', $lang);
$GLOBALS['smarty']->assign('token', $GLOBALS['session']->_session['token']);

$GLOBALS['smarty']->display('plugins_gestion.tpl');

require_once 'footer.php';
?>